FROM alpine:latest
MAINTAINER xiaozuhui "xiaozuhui@outlook.com"

COPY . $GOPATH/src/blog-server
WORKDIR $GOPATH/src/blog-server

RUN mkdir /lib64 && ln -s /lib/libc.musl-x86_64.so.1 /lib64/ld-linux-x86-64.so.2

EXPOSE 8080
ENTRYPOINT ["./blog-server"]